﻿.common-form-group {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}
    .common-form-group h4{
        margin:inherit;
        margin-bottom:16px;
    }
    
    .common-form-group label {
        padding-bottom: 4px !important;
        color:#1d1d1d;
    }
    .common-form-group textarea::placeholder,
    .common-form-group input[type="text"]::placeholder,
    .common-form-group input[type="search"]::placeholder,
    .common-form-group input[type="tel"]::placeholder,
    .common-form-group input[type="number"]::placeholder,
    .custom-address-form .form-group input[type="text"]::placeholder,
    .custom-address-form .form-group input[type="search"]::placeholder,
    .custom-address-form .form-group input[type="tel"]::placeholder {
        opacity: 1;
        color: #757575;
        text-transform:none;
    }
    .common-form-group input[type="text"],
    .common-form-group input[type="search"],
    .common-form-group textarea,
    .common-form-group input[type="tel"],
    .common-form-group input[type="number"],
    .common-form-group select,
    .custom-address-form .form-group input[type="text"],
    .common-form-group input[type="search"],
    .common-form-group .custom-date-picker .date-input,
    .custom-address-form .form-group input[type="tel"],
    .custom-address-form .form-group select {
        height: 48px;
        border: 2px solid #1D1D1D !important;
        border-radius: 8px;
        width: 100%;
        padding: 6px 8px;
        font-size: 16px;
        color: #1e1e1e;
    }
        .custom-address-form input[type="text"]:hover,
        .custom-address-form input[type="text"]:focus,
        .custom-address-form input[type="search"]:hover,
        .custom-address-form input[type="search"]:focus,
        .common-form-group input[type="text"]:hover,
        .common-form-group input[type="text"]:focus,
        .common-form-group input[type="search"]:hover,
        .common-form-group input[type="search"]:focus,
        .common-form-group input[type="number"]:hover,
        .common-form-group input[type="number"]:focus,
        .common-form-group textarea:hover,
        .common-form-group textarea:focus,
        .common-form-group input[type="tel"]:hover,
        .common-form-group input[type="tel"]:focus,
        .common-form-group select:hover,
        .common-form-group select:focus,
        .common-form-group .custom-date-picker .date-input:hover,
        .common-form-group .custom-date-picker .date-input:focus
        {
            box-shadow: 0 0 1px 1px rgba(29,29,29,1);
        }
    /* Error meaage */
    .custom-address-form .has-error input[type="text"],
    .custom-address-form .has-error input[type="search"],
    .common-form-group.hasError input[type="text"],
    .common-form-group.hasError input[type="search"],
    .common-form-group.hasError input[type="number"],
    .common-form-group.hasError textarea,
    .common-form-group.hasError input[type="tel"],
    .common-form-group.hasError select,
    .common-form-group.hasError .custom-date-picker .date-input,
    .common-form-group.hasError .custom-date-picker .date-input {
        border-color: #EA0B0B !important;
    }

    /*Error message hover and focus */
        .custom-address-form .has-error input[type="text"]:hover,
        .custom-address-form .has-error input[type="text"]:focus,
        .custom-address-form .has-error input[type="search"]:hover,
        .custom-address-form .has-error input[type="search"]:focus,
        .common-form-group.hasError input[type="text"]:hover,
        .common-form-group.hasError input[type="text"]:focus,
        .common-form-group.hasError input[type="search"]:hover,
        .common-form-group.hasError input[type="search"]:focus,
        .common-form-group.hasError input[type="number"]:hover,
        .common-form-group.hasError input[type="number"]:focus,
        .common-form-group.hasError textarea:hover,
        .common-form-group.hasError textarea:focus,
        .common-form-group.hasError input[type="tel"]:hover,
        .common-form-group.hasError input[type="tel"]:focus
        .common-form-group.hasError select:hover,
        .common-form-group.hasError select:focus,
        .common-form-group.hasError .custom-date-picker .date-input:hover,
        .common-form-group.hasError .custom-date-picker .date-input:focus 
        {
            box-shadow: 0 0 1px 1px rgba(234, 11, 11, 1);
        }


    .common-form-group .hint-message {
        color: #757575;
        font-size: 16px;
        line-height: 24px;
    }
    .common-form-group .error-message {
        display: flex;
        gap: 4px;
        font-size: 16px;
        line-height: 24px;
        color: #EA0B0B;
        display: none;
        margin-top:6px;
    }

    .common-form-group.hasError .error-message {
        display:flex;
    }
        .common-form-group.hasError .error-message img{
            display:inline;
            margin-top:2px;

        }

            .common-form-group.phone-group{
                width:630px !important;
            }
                .common-form-group.phone-group .phone-Number-row .h1-mobile-number-edit-form.row {
                    margin:0 !important;
                    padding:0 !important;
                }
                .common-form-group.phone-group .phone-Number-row label {
                    font-family: 'Roobert-Regular';
                }
                .common-form-group.phone-group .form-control {
                    height: 48px;
                    border: solid 2px #1D1D1D;
                    border-radius: 8px;
                    display: flex;
                    align-items: center;
                    font-size: 16px;
                    color: #1d1d1d;
                }
                .common-form-group.phone-group dl.h1-country-dropdown dt span:nth-child(3) {
                    font-size: 16px;
                    color: #1E1E1E;
                    margin-bottom: 0;
                    font-weight: 400;
                }

                .common-form-group.phone-group .form-control:focus {
                    box-shadow: 0 0 1px 1px rgba(29,29,29,1);
                }
                .common-form-group.phone-group .has-error .form-control:hover,
                .common-form-group.phone-group .has-error .form-control:focus {
                    box-shadow: 0 0 1px 1px #EA0B0B;
                    outline: none !important;
                } 
                .common-form-group.phone-group .h1-country-dropdown dt a span{
                    display:flex;
                    align-items:center;
                }
                .common-form-group.phone-group dl.h1-country-dropdown dt span:nth-child(2){
                    display:none;
                }
                .common-form-group.phone-group .h1-country-dropdown dt a span span:first-child:before{
                    width:auto;
                    height:auto;
                }

                .common-form-group.phone-group .has-error .form-control {
                    border-color: #EA0B0B !important;
                }
                .common-form-group.phone-group .has-error .help-block {
                    color: #EA0B0B !important;
                    font-size:16px;
                }
                    .common-form-group.phone-group .has-error .help-block img{
                        margin-right:4px;
                    }
                    .common-form-group.phone-group .h1-form-note-wrapper {
                        margin-top: 6px;
                        padding-left: 0;
                    }
                    .common-form-group.phone-group .h1-form-note-wrapper .form-note {
                        color: #757575;
                        font-size:16px;
                    }

                    .common-form-group .phone-Number-row .h1-phone-controller-wrapper {
                        width: 100%;
                    }
    .common-form-group .phone-Number-row .h1-mobile-type-form-group {
        width: 100px;
        margin-right:16px;
        padding-right:0;
        padding-left:0;
    }
    .common-form-group .phone-Number-row .h1-mobile-flag-form-group {
        width: 124px;
        margin-right: 16px;
        padding-right: 0;
    }
    .common-form-group .phone-Number-row .h1-mobile-number-form-group {
        width: 187px;
    }
    .common-form-group .phone-Number-row .h1-mobile-exten-form-group{
        width:160px;
    }
    .phone-Number-row .h1-stnd-has-success, .phone-Number-row .h1-stnd-has-error{
        display:none;
    }
.common-form-group .phone-Number-row .h1-country-dropdown dt a {
    background: url(../images/dropdown-icon.svg) no-repeat right 8px center;
}

.common-form-group .radio-row, .common-form-group .checkbox-row {
    margin-bottom: 12px;
}

    .common-form-group .checkbox-row, .common-form-group .radio-row {
        position: relative;
    }
.checkbox-row label, .radio-row label {
    padding-left: 30px;
    font-family: 'Roobert-Regular' !important;
}
.checkbox-row.label-bold label, .radio-row.label-bold label {
    padding-left: 30px;
    font-family: 'Roobert-Bold' !important;
}

    .common-form-group input[type="checkbox"], .common-form-group input[type="radio"] {
        position: absolute;
        height: 0 !important;
        width: 0 !important;
        -webkit-appearance: none;
    }

        .common-form-group input[type="checkbox"]:before, .common-form-group input[type="radio"]:before {
            display: flex;
            align-items: center;
            justify-content:center;
            content: '';
            width: 24px;
            height: 24px;
            border: solid 2px #1d1d1d;
            border-radius: 8px;
            position: absolute;
            top: 2px;
            left: 0;
            font-family: 'FontAwesome';
            cursor: pointer;
            font-size: 20px;
            padding: 0;
        }

        .common-form-group input[type="checkbox"]:hover:before,
        .common-form-group input[type="checkbox"]:focus:before,
        .common-form-group input[type="radio"]:hover:before,
        .common-form-group input[type="radio"]:focus:before {
            box-shadow: 0 0 1px 1px rgba(29, 29, 29, 1);
        }

            .common-form-group input[type="checkbox"]:checked:before {
            content: "\f00c";
        }

        .common-form-group input[type="checkbox"]:disabled:before,
        .common-form-group input[type="radio"]:disabled:before {
            cursor: not-allowed;
            background: lightgray;
        }
.common-form-group.hasError .checkbox-row input[type="checkbox"]:before,
.common-form-group.hasError .radio-row input[type="radio"]:before {
    border-color: #EA0B0B;
}
.common-form-group.hasError .checkbox-row input[type="checkbox"]:hover:before,
.common-form-group.hasError .checkbox-row input[type="checkbox"]:focus:before,
.common-form-group.hasError .radio-row input[type="radio"]:hover:before,
.common-form-group.hasError .radio-row input[type="radio"]:focus:before {
    box-shadow: 0 0 1px 1px rgba(234, 11, 11, 1);    
}

    /* radio class*/
    .common-form-group input[type="radio"]:before {
        border-radius: 100%;
    }

    .common-form-group input[type="radio"]:checked:before {
        content: "\f111";
        font-size:16px;
    }

.common-primary-button {
    height: 48px;
    gap: 8px;
    border-radius: 8px;
    display: flex;
    font-family: 'Roobert-Bold';
    align-items: center;
    font-size: 16px;
    line-height: 24px;
    background: #005B66;
    color: #FFF;    
    justify-content:center;
}
    .common-primary-button:hover {
        background: rgba(0, 91, 102, 0.95);
    }
    .common-primary-button i {
        display: flex;
        height: 32px;
        width: 32px;
        min-height: 32px;
        min-width: 32px;
        background: #196b75;
        border-radius: 100%;
        align-items: center;
        justify-content: center;
    }
        
        .common-outline-button {
            display: flex;
            padding: 4px 16px;
            font-family: 'Roobert-Bold';
            border: solid 1px #005B66;
            align-items: center;
            justify-content:center;
            gap: 8px;
            border-radius: 8px;
            height: 48px;
            color: #005B66;
            font-size: 16px;
        }

            .common-outline-button:hover {
                background: #f7feff;
                border: solid 1px #005B66;
            }
    .common-outline-button i {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        background: #E3F7F1;
        border-radius: 100%;
        padding:2px;
        display:flex;
        align-items:center;
        justify-content:center;
    }
        .common-outline-button i img{
            max-width:18px;
            max-height:18px;
        }
        .transparent-button {
            display: flex;
            gap: 8px;
            padding: 4px 0;
            font-family: 'Roobert-Bold';
            color: #005B66;
            height: 48px;
            align-items: center;
            font-size: 16px;
            cursor:pointer;
        }

.custom-address-form .form-group{
    margin-bottom:14px !important;
}
.custom-address-form .form-group label {
    width: 100%;
    text-align: left;
    padding: 0;
    margin-bottom: 4px;
}

.custom-address-form .form-group .col-sm-8.form-field{
    width:320px;
    padding:0;
}
.custom-address-form fieldset div:nth-child(2) .form-group:last-child .col-sm-4 {
   display:none;
}
.custom-address-form .valid{
   display:none;
}

.common-secondary-button {
    display: flex;
    padding: 4px 16px;
    font-family: 'Roobert-Bold';
    border: solid 1px #005B66;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    height: 48px;
    color: #005B66;
    font-size: 16px;
}

    .common-secondary-button:hover {
        background: #f7feff;
        border: solid 1px #005B66;
    }

    .common-secondary-button i {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        background: #E3F7F1;
        border-radius: 100%;
        padding: 2px;
    }

        .common-secondary-button i img {
            max-width: 100%;
            max-height: 100%;
        }

@media only screen and (max-width: 991px) {
    .flex-button-row{ flex-direction:column !important; align-items:center;}
    .common-primary-button, .transparent-button {
        height: 40px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        line-height:14px;
    }
        .common-primary-button i {
            height: 24px;
            width: 24px;
            min-height: 24px;
            min-width: 24px;
        }

    .common-outline-button{
        height:40px;
        font-size:14px;
    }

        .common-outline-button i {
            height: 24px;
            width: 24px;
            min-height: 24px;
            min-width: 24px;
            line-height:16px;
        }
            .common-outline-button i img{
                width:12px;
            }

            .common-form-group .common-outline-button {
                padding: 4px 8px;
            }

    .common-secondary-button {
        height: 40px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        line-height: 14px;
    }

    .common-secondary-button i {
        height: 24px;
        width: 24px;
        min-height: 24px;
        min-width: 24px;
    }

        .common-secondary-button i img {
            width: 12px;
        }

    .common-form-group .common-secondary-button {
        padding: 4px 8px;
    }

    .common-form-group .phone-Number-row {
        flex-wrap: wrap;
    }
        .common-form-group .phone-Number-row .type, .common-form-group .phone-Number-row .country {
            width:calc(50% - 8px);
        }
        .common-form-group .phone-Number-row .number {
            width:100%;
        }
    .checkbox-row label, .radio-row label{
        padding-top:3px;
    }
    .common-form-group .phone-Number-row .h1-mobile-type-form-group{
        width:calc(50% - 8px);
    }
    .common-form-group .phone-Number-row .h1-mobile-flag-form-group {
        width: calc(50% - 8px);
        margin-right:0;
    }
    .common-form-group .phone-Number-row .h1-mobile-number-form-group{
        width:100%;
        margin-top:16px;
    }
    .common-form-group .phone-Number-row .h1-mobile-exten-form-group {
        margin-top: 16px;
        width: 100%;
        padding: 0;
    }
    .custom-address-form .form-group .col-sm-8.form-field{
        width:100%;
    }
    .custom-address-form .valid{
        right:7px !important;
    }
    .custom-address-form .valid:after {
        left: 0;
    }
}


@media only screen and (max-width: 767px) {
    .common-form-group.phone-group {
        width: 100% !important;
    }
}
    /* --- temp style for new services layout */